﻿using System;
using System.Collections.Generic;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Content;
using System.Linq;
using System.Text;
using KduneeShaders;

namespace ShaderApp
{
    class PhongBlinnExample : ShaderExample
    {
        override internal void LoadContent(ContentManager content)
        {
            Model model = content.Load<Model>(@"Content\Models\p1_wedge");

            Texture2D diffuse = content.Load<Texture2D>(@"Content\Textures\wedge_p1_diff_v1");

            PhongBlinnShader newPhongBlinn = new PhongBlinnShader(content, diffuse);

            newPhongBlinn.MaterialAmbient = new Microsoft.Xna.Framework.Vector4(1.0f, 1.0f, 1.0f, 1.0f);
            newPhongBlinn.PerPixel = true;

            objects.Add(new ShaderedObject(newPhongBlinn, model));
        }
    }
}
